import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ant-design:robot-outlined',
      keepAlive: true,
      order: 900,
      title: $t('AI工具'),
    },
    name: 'ai',
    path: '/ai',
    children: [
      {
        meta: {
          icon: 'ant-design:message-outlined',
          title: $t('通用对话'),
        },
        name: 'aiChat',
        path: 'chat',
        component: () => import('#/views/ai/chat/index.vue'),
      },
      {
        meta: {
          icon: 'ant-design:picture-outlined',
          title: $t('文生图'),
        },
        name: 'aiImage',
        path: 'image',
        component: () => import('#/views/ai/image/index.vue'),
      },
      {
        meta: {
          icon: 'ant-design:appstore-outlined',
          title: $t('多模态'),
        },
        name: 'aiMultimodal',
        path: 'multimodal',
        component: () => import('#/views/ai/multimodal/index.vue'),
      },
      {
        meta: {
          icon: 'ic:baseline-view-in-ar',
          title: $t('智能体演示'),
        },
        name: 'aiAgent',
        path: 'agent',
        component: () => import('#/views/ai/agent/index.vue'),
      },
    ],
  },
];

export default routes;
